package com.legendshop.openportal.sdk.service;

import cn.hutool.core.lang.TypeReference;
import com.legendshop.openportal.sdk.model.OpenResult;
import com.legendshop.openportal.sdk.model.request.*;
import com.legendshop.openportal.sdk.model.response.*;

import java.util.List;

/**
 * 开放平台售后服务， 参见 OrderAfterSaleManageController
 * @author jzh
 * @version 1.0.0
 * @title OrderService
 * @date 2024/6/24 9:59
 * @description：
 */
public class MessageService extends BaseService {

    /**
     * 获取消息
     * @param request
     * @return
     */
    public static OpenResult<List<MessagePoolMessageResponse>> get(MessageGetRequest request) {
        return execute(request, new TypeReference<List<MessagePoolMessageResponse>>() {});
    }

    /**
     * 删除消息
     * @param request
     * @return
     */
    public static OpenResult<String> del(MessageDelRequest request) {
        return execute(request, String.class);
    }


}
